package sz.szsmk.citizencard.mvp.contract;

import java.util.List;

import sz.szsmk.citizencard.model.network.bean.response.BaseBean;
import sz.szsmk.citizencard.model.network.bean.response.BindThirdRes;
import sz.szsmk.citizencard.model.network.bean.response.OauthTokenRes;
import sz.szsmk.citizencard.ui.base.IBaseContact;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/6/4 19:59
 * description:
 */
public interface IBindContact {

    interface IBindPresenter<T extends IBaseContact.IBaseView> extends IBaseContact.IBasePresenter {
        void getBindList();

        void oauthToken();

        void bindThird(String login_type,String uid,String access_token);

        void unBind(int loginType);
    }

    interface IBindView extends IBaseContact.IBaseView {
        // 获得数据失败
        void getBindListFail();

        void getBindListSucc(List<BindThirdRes.ThirdAppUserExBean> thirdAppUserEx);

        void oauthTokenSucc(OauthTokenRes response);

        void oauthTokenFail();

        void bindThirdSucc();

        void bindThirdFail();

        void unBindFail(BaseBean response);

        void unBindSucc(BaseBean response);

    }

}
